<!DOCTYPE html>
<html>
<head>
	<title>第一个Vue实例</title>
</head>
<body>
	<div id="app">
		<h1>{{title}}</h1>
        <input type="text" v-on:input="changeTitle">
	</div>
 	<script type="text/javascript" src="../js/vue.js"></script>
 	<script type="text/javascript">
 		var app = new Vue({
 			el: '#app',
 			data: {
 				title: 'hello Vue'
 			},
            methods: {
                changeTitle: function (event) {
                    this.title = event.target.value;
                }
            }
 		});
 	</script>
</body>
</html>